﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class06_类和对象
{

    //新建一个类，存储操作记录

    public class Transaction
    {
        public decimal Amount { get; }

        public DateTime Date { get; }

        public string Notes { get; }

        public Transaction(decimal amount,DateTime date,string notes) 
        { 
            this.Amount = amount;
            this.Date = date;
            this.Notes = notes;
        }
    }
}
